import React from 'react';
import { Provider } from 'react-redux';
import { store } from '../store/configureStore';
import Route from '../Route';

window.store = store;

class RouterContainer extends React.PureComponent {
  render() {
    return (
      <Provider store={store}>
        {this.props.children}
      </Provider>
    );
  }
}

class Root extends React.PureComponent {
  render() {
    return (
      <RouterContainer>
        <Route />
      </RouterContainer>
    );
  }
}

export default Root;
